package com.gxa.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

@ApiModel("文章评论实体类")
public class Comments {

    //文章标题
    @ApiModelProperty("文章标题")
    private String title;
    //评论内容
    @ApiModelProperty("评论内容")
    private String content;
    //最近评论时间
    @ApiModelProperty("最近评论时间")
    private Date lastTime;

    public Comments() {
    }

    public Comments(String title, String content, Date lastTime) {
        this.title = title;
        this.content = content;
        this.lastTime = lastTime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getLastTime() {
        return lastTime;
    }

    public void setLastTime(Date lastTime) {
        this.lastTime = lastTime;
    }
}
